package com.xky.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 销售订单实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SalesOrders {
    private Integer orderId;                 // 订单ID
    private String orderNumber;              // 订单编号
    private Integer customerId;              // 客户ID
    private LocalDateTime orderDate;         // 下单时间
    private LocalDate expectedShipDate;      // 预计发货日期
    private LocalDate actualShipDate;        // 实际发货日期
    private Integer warehouseId;             // 发货仓库ID
    private String orderStatus;              // 订单状态
    private String paymentStatus;            // 支付状态
    private String paymentMethod;            // 支付方式
    private BigDecimal subtotal;             // 商品总额
    private BigDecimal taxAmount;            // 税额
    private BigDecimal discountAmount;       // 折扣金额
    private BigDecimal shippingFee;          // 运费
    private BigDecimal totalAmount;          // 订单总金额
    private BigDecimal paidAmount;           // 已付金额
    private String notes;                    // 订单备注
    private Integer createdBy;               // 创建人ID
    private LocalDateTime createdTime;       // 创建时间
    private LocalDateTime updatedTime;       // 更新时间
} 